package com.yanqu.road.entity.activity.snowgarden.config;

import com.yanqu.road.utils.string.StringUtils;

import java.util.List;

public class SnowGardenFakeBuyInfo {
    private int hourNumber;
    private int startRandNum; //随机最小
    private int endRandNum; //随机最大
    private int addFakeBuyCountOnceMin; //每次增加的假购买数随机最小
    private int addFakeBuyCountOnceMax; //每次增加的假购买数随机最大

    public SnowGardenFakeBuyInfo(int hourNumber, String params) {
        //8,12,1
        List<Integer> list = StringUtils.stringToIntegerList(params, ",");
        this.hourNumber = hourNumber;
        this.startRandNum = list.get(0);
        this.endRandNum = list.get(1);
        this.addFakeBuyCountOnceMin = list.get(2);
        this.addFakeBuyCountOnceMax = list.get(3);
    }

    public int getHourNumber() {
        return hourNumber;
    }

    public int getStartRandNum() {
        return startRandNum;
    }

    public int getEndRandNum() {
        return endRandNum;
    }

    public int getAddFakeBuyCountOnceMin() {
        return addFakeBuyCountOnceMin;
    }

    public void setAddFakeBuyCountOnceMin(int addFakeBuyCountOnceMin) {
        this.addFakeBuyCountOnceMin = addFakeBuyCountOnceMin;
    }

    public int getAddFakeBuyCountOnceMax() {
        return addFakeBuyCountOnceMax;
    }

    public void setAddFakeBuyCountOnceMax(int addFakeBuyCountOnceMax) {
        this.addFakeBuyCountOnceMax = addFakeBuyCountOnceMax;
    }
}
